package com.bup.gn.dao;

import com.bup.gn.model.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

public interface UserDao extends JpaRepository<User, Integer> {
    @Query("from User where email = ?1")
    User findByUserId(String userId);
}